package modellayer;

/**
 * The CompanyType class to create CompanyType objects
 * @author Allan Eriksen, Andreas Rye, Casper Madsen, Christian Stidsborg, Stefan Bols
 */



public class CompanyType
{
	private int id;
	private String name;
	
	/**
	 * CompanyType Fields
	 * @param id
	 * @param name
	 */
	
	/**
	 * Constructor for the CompanyType class
	 */
	public CompanyType(int id, String name)
	{
		super();
		this.id = id;
		this.name = name;
	}

	/**
	 * Get method for id
	 * @return id
	 */
	public int getId()
	{
		return id;
	}

	/**
	 * Set method for id
	 * @return id
	 */
	public void setId(int id)
	{
		this.id = id;
	}

	/**
	 * Get method for name
	 * @return name
	 */
	public String getName()
	{
		return name;
	}

	/**
	 * Set method for name
	 * @return name
	 */
	public void setName(String name)
	{
		this.name = name;
	}
	
	/**
	 * toString method, converts name to a string
	 * @return name
	 */
	@Override
    public String toString() {
        return this.name;
    }
	
	
}
